package com.hqyj.lyf.utils;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.springframework.context.annotation.Bean;

/**
 * MD5 加密工具类
 * 返回盐值
 */
public class MD5 {
    public static String Md5(String username,String password){
        return String.valueOf(new SimpleHash("MD5", password, username, 1024));
    }
}
